package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     *
     * @param employeeDTO
     */
    void addEmployee(EmployeeDTO employeeDTO);

    /**
     * 员工分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult empPage(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 修改账号启用与禁用状态
     * @param id
     * @param status
     * @return
     */
    void setStatus(Long id, Integer status);

    /**
     * 根据ID查询员工信息
     * @param id
     * @return
     */
    Employee selectById(Long id);

    /**
     * 修改员工信息
     * @param employee
     */
    void updateEmp(EmployeeDTO employee);
}
